package com.oocl.admin_platform.dao;

import java.util.List;

import com.oocl.admin_platform.pojo.FailReason;

public interface FailReasonDao {
	
	/**
	 * 
	 * @param customerId
	 * @return
	 */
	public FailReason findByMerchantId(String merchantId);
	
	/**
	 * 
	 * @param uname
	 * @return
	 */
	public FailReason findByMerchantUname(String uname);
	
	/**
	 * 
	 * @param failReason
	 * @return
	 */
	public boolean save(FailReason failReason);
	
	/**
	 * 
	 * @return
	 */
	public List<FailReason> findAll();
	
	/**
	 * 
	 * @param failReason
	 * @return
	 */
	public boolean update(FailReason failReason);
	
	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	public boolean delete(String merchantId);
	
	
}
